<template>
  <div>
    <!-- 导航1 -->
    <el-header class="header">
      <el-row>
        <el-menu mode="horizontal" background-color="#545c64" text-color="#fff" class="header_navbar">
          <el-col :span="8">
            <!-- 导航条logo -->
            <el-menu-item index="1" class="logo_box">
              <img src="../../assets/librarian/image/lib_logo.png" class="logo" />
            </el-menu-item>
          </el-col>
          <el-col :span="8">
            <!-- 导航条搜索框 -->
            <el-menu-item index="2">
              <el-input placeholder="Search here" clearable>
                <el-button slot="append" icon="el-icon-search"></el-button>
              </el-input>
            </el-menu-item>
          </el-col>
          <!-- 导航条退出按钮 -->
          <el-col :span="2">
            <el-menu-item index="3" class="logout_box">
              <el-button type="info" @click="backToIndex">Back</el-button>
            </el-menu-item>
          </el-col>
        </el-menu>
      </el-row>
    </el-header>
    <!-- 页面说明 -->
    
    <div class="admin_home_box">
      
      <img src="../../assets/admin/image/admin_home.png" width="600px" class="pic1">
      <div class="buts">
        <el-row>
          <el-button type="success" round @click="goToRegister">Librarian Account Register</el-button> <br><br>
          <el-button type="success" round @click="goToManage">Librarian Account Manage  </el-button> <br><br>
          <el-button type="success" round @click="goToRecover">Account Password Recover  </el-button> <br><br>
          <el-button type="success" round @click="goToBookValue">Set Book Fine Value       </el-button> <br><br>
          <el-button type="success" round @click="goToReaderDeposit">Set Reader Security Deposit</el-button> <br><br>
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
  export default{
    data(){
      return{

      }
    },
    created(){

    },
    methods:{
      // 返回首页
      backToIndex(){
        this.$router.push('/index')
      },
      goToRecover(){
        this.$router.push('/password_recover')

      }
    }
  }
</script>

<style lang="less" scoped>
.admin_home_box{
  height: 650px;
  width: 100%;
}
.pic1{
  position: absolute;
  top: 120px;
  left: 30px;
}
.admin_home_box .buts{
  position: absolute;
  right: 200px;
  top: 170px;
  width: 400px;
  height: 500px;
 
}
.admin_home_box .el-button{
  width: 220px;
}
p{
  width: 100%;
}
</style>
